package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface usermapper {
    //添加用户功能
    int insertUser(User user);
    //查询用户功能
    User byUsername(String username);
    //分页查询
    User[] page(int page,int size,int permission,String query);
    //查询全部
    List<User> all(int permission, String query);

    int update(String name, int id, int status, String username, Date date);
}
